package com.rabbit.eap.system.convert;

import com.rabbit.eap.framework.shiro.vo.LoginSysUserVO;
import com.rabbit.eap.system.entity.SysUser;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @projectName eap
 * @packageName com.rabbit.eap.system.convert
 * @className SysUserConvert
 * @author： rabbit
 * @version： 1.0
 * @since： 2020/5/31 00:37
 * <p>Description: SysUserConvert
 * 系统用户对象属性转换器
 * </p>

 */
@Mapper
public interface SysUserConvert {
    SysUserConvert INSTANCE = Mappers.getMapper(SysUserConvert.class);

    /**
     * 系统用户实体对象转换成登录用户VO对象
     *
     * @param sysUser
     * @return
     */
    LoginSysUserVO sysUserToLoginSysUserVO(SysUser sysUser);
}
